import {Entity, PrimaryColumn, Column, Long,PrimaryGeneratedColumn,OneToMany} from "typeorm";
import {CountryEntity} from './CountryEntity';
@Entity("continent")
export class ContinentEntity{
    @PrimaryGeneratedColumn()
    continent_Id!: number;

    @Column()
    name!:string;

    @OneToMany(() => CountryEntity, CountryEntity => CountryEntity.Continent)
    Countrys!: CountryEntity[];

}